home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 3
/
Gold Medal Software - Volume 3 (Gold Medal) (1994).iso
/
comms
/
icom0425.arj
/
WCDESC.SCR
< prev
Wrap
Text File
|
1994-04-25
|
2KB
|
62 lines
;------------------------------------------------------------------------------
; WCDESC.SCR for Intellicomm v2 or above.
;
; This script is only needed for AUTOMATED uploads on Wildcat v3.x BBS's.
; It is plugged into Wildcat BIFs on the "File" screen:
;
; ║ Descrip @SCRIPT @WCDESC.SCR Enter Descrip. . Description? « ║
;
; What this means is that this script (WCDESC.SCR) is called to enter file
; description on Wildcat auto-uploads. The script is needed due to the way
; Wildcat operates. Most BBS's that allow "extended" description lines simply
; allow you to enter the lines without asking unnecessary questions. Wildcat
; allows entry of one line only, then it ASKS whether you want to enter any
; more description lines. That this, this script is needed to handle the
; "Enter extended description?" question. By the time this script is called,
; Intellicomm has already found the initial "Enter Descrip." prompt above,
; so we send the first line immediately.
;
; Note also that the description has also be pre-formatted by Intellicomm
; to the Max Chars Per Line item set in the BIF. So no CFORMATDESC is needed
; here.
;------------------------------------------------------------------------------
variable linenum 1
variable linedat
CGETDESC linedat linenum ;get line 1
if $ERRORLEVEL <> 0 assign linedat "No description was available for this file."
send linedat ;send it
waitfor "detailed description" 60 TIMEOUT
delay 10
inc linenum
cgetdesc linedat linenum ;check for line 2, answer Yes/No
if $ERRORLEVEL <> 0 ;no more lines, quit
sendnc "N"
return
endif
sendnc "Y"
delay 10
while 1 ;endless loop (until BREAK)
send linedat
if linenum >= *[F]flmx break ;Max Lines (defined on BIF "File" screen)
inc linenum ;INCrement (linenum = linenum + 1)
CGETDESC linedat linenum ;get the next line
if $ERRORLEVEL <> 0 break ;no more description lines?
delay 10 ;pause for a second (let BBS catch up)
endwhile
send "" ;terminate the comment (blank line)
waitfor "Edit Message" 60 TIMEOUT
delay 10
sendnc "S"
return
TIMEOUT:
send ""
return